home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmUUCode
- Caption = "UU Code"
- ClientHeight = 2490
- ClientLeft = 2625
- ClientTop = 1560
- ClientWidth = 4635
- Height = 2895
- Icon = "frmUCode.frx":0000
- Left = 2565
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 2490
- ScaleWidth = 4635
- Top = 1215
- Width = 4755
- Begin VB.TextBox txtEncodedFile
- Height = 285
- Left = 1620
- TabIndex = 9
- Top = 1860
- Width = 2985
- End
- Begin VB.TextBox txtMaxFileSize
- Alignment = 1 'Right Justify
- Height = 285
- Left = 1620
- TabIndex = 6
- Text = "0"
- Top = 1080
- Width = 825
- End
- Begin VB.TextBox txtEncodePath
- Height = 285
- Left = 1620
- TabIndex = 4
- Top = 780
- Width = 2985
- End
- Begin VB.TextBox txtDecodePath
- Height = 285
- Left = 1620
- TabIndex = 11
- Top = 2160
- Width = 2985
- End
- Begin VB.CommandButton cmdDecode
- Caption = "UU&Decode"
- Height = 345
- Left = 480
- TabIndex = 7
- Top = 1440
- Width = 1035
- End
- Begin VB.TextBox txtInputFile
- Height = 285
- Left = 1620
- TabIndex = 2
- Top = 480
- Width = 2985
- End
- Begin VB.CommandButton cmdEncode
- Caption = "UU&Encode"
- Height = 345
- Left = 480
- TabIndex = 0
- Top = 60
- Width = 1035
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Encoded &File:"
- Height = 195
- Index = 4
- Left = 600
- TabIndex = 8
- Top = 1890
- Width = 975
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Max Encode File&Size:"
- Height = 195
- Index = 2
- Left = 30
- TabIndex = 5
- Top = 1110
- Width = 1530
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "De&code To Path:"
- Height = 195
- Index = 3
- Left = 330
- TabIndex = 10
- Top = 2190
- Width = 1230
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "E&ncode To Path:"
- Height = 195
- Index = 1
- Left = 360
- TabIndex = 3
- Top = 810
- Width = 1215
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "&Input File:"
- Height = 195
- Index = 0
- Left = 870
- TabIndex = 1
- Top = 510
- Width = 690
- End
- Attribute VB_Name = "frmUUCode"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdEncode_Click()
- Dim UU As UUCode
- Dim InFile As String
- Dim OutPath As String, OutFile As String
- Dim MaxFileSize As Long
- Dim t As Single
- t = Timer
- Screen.MousePointer = vbHourglass
- Set UU = New UUCode
- InFile = txtInputFile.Text
- OutPath = txtEncodePath.Text
- MaxFileSize = Val(txtMaxFileSize.Text)
- If UU.UUEncodeFiles(InFile, OutPath, MaxFileSize) Then
- End If
- Set UU = Nothing
- Screen.MousePointer = vbDefault
- Debug.Print "Runtime", (Timer - t)
- End Sub
- Private Sub cmdDecode_Click()
- Dim UU As UUCode
- Dim InFile As String, OutFile As String, OutPath As String
- Dim t As Single
- t = Timer
- Screen.MousePointer = vbHourglass
- Set UU = New UUCode
- InFile = txtEncodedFile.Text
- OutFile = ""
- OutPath = txtDecodePath.Text
- If UU.UUDecodeFiles(InFile, OutFile, OutPath) Then
- End If
- Set UU = Nothing
- Screen.MousePointer = vbDefault
- Debug.Print "Runtime", (Timer - t)
- End Sub
- Private Sub Form_Load()
- txtInputFile.Text = App.Path & "\"
- txtEncodePath.Text = App.Path & "\"
- txtMaxFileSize.Text = 0
- txtEncodedFile.Text = App.Path & "\"
- txtDecodePath.Text = App.Path & "\"
- End Sub
-